﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CourseCatalog.aspx.cs" Inherits="CourseScheduling.CourseCatalog" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:SqlDataSource ID="CourseCatalogSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Course]"></asp:SqlDataSource>
    <asp:GridView ID="CourseCatalogView" runat="server" AllowSorting="True" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="CourseNumber" 
        DataSourceID="CourseCatalogSource" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="CourseNumber" HeaderText="Course Number" 
                ReadOnly="True" SortExpression="CourseNumber" />
            <asp:BoundField DataField="CourseName" HeaderText="Course Name" 
                SortExpression="CourseName" />
            <asp:CheckBoxField DataField="OddFall" HeaderText="Odd Fall" 
                SortExpression="OddFall" />
            <asp:CheckBoxField DataField="EvenSpring" HeaderText="Even Spring" 
                SortExpression="EvenSpring" />
            <asp:CheckBoxField DataField="EvenFall" HeaderText="Even Fall" 
                SortExpression="EvenFall" />
            <asp:CheckBoxField DataField="OddSpring" HeaderText="Odd Spring" 
                SortExpression="OddSpring" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
</asp:Content>
